package base;

public class 数组{
    public static void main(String[] agrs){
        String [] s = new String [50];   // 动态数组
        String [] v = new String[]{"ss","ss"}; //静态数组
        System.out.println(v[0]);
        s[0] = "ert";
        System.out.println(s[0]);
        for (int i = 0; i < v.length; i++) {
            System.out.println(v[i]);
        }
        //

        int num [] = {12,12,33,115,556,5};
        int max = num[0];
        for (int i = 0; i < num.length; i++) {
            if (num[i] >num[0]){
                max = num[i];

            }
        }
        System.out.print(max);//最大值
    }
}
